package com.ucenter.server.auth.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.ucenter.server.auth.pojo.ResInfo;
import com.ucenter.server.auth.pojo.RoleInfo;
import com.ucenter.server.auth.pojo.RoleUser;

/**
 * role_user的Dao
 * @author autoCode
 * @date 2018-12-01 09:50:44
 * @version V1.0.0
 */
public interface RoleUserDao {

	public abstract void save(RoleUser roleUser);

	public abstract void update(RoleUser roleUser);

	public abstract void delete(@Param("userId")String userId, @Param("roleId")String roleId);

	public abstract RoleUser get(@Param("userId")String userId, @Param("roleId")String roleId);

	public abstract List<RoleUser> findRoleUser(RoleUser roleUser);
	
	public abstract int findRoleUserCount(RoleUser roleUser);

	public abstract List<RoleUser> findByUserId(@Param("userId")String userId);

	public abstract List<ResInfo> findResByUidWid(@Param("userId")String userId, @Param("websiteId")String websiteId);

	public abstract List<RoleInfo> findRoleByUidWid(@Param("userId")String userId, @Param("websiteId")String websiteId);

	public abstract void deleteByUserId(@Param("userId")String userId);
}